package edu.gdkm.demo;

import java.util.Scanner;
//输入数字月份，输出英文月份
public class Demo10 {
    public static void main(String[] args) {
        System.out.println("请输入月份：");
        Scanner scanner= new Scanner(System.in);
        int month=scanner.nextInt();
//        if(month==1){
//            System.out.println("Jan");
//        }else if(month==2){
//            System.out.println("Feb");
//        }
        // month == 1 ?
        switch (month){
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6: System.out.println("上半年");break;
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
            case 12: System.out.println("下半年");break;
        }
        //使用switch，判断输入的月份是哪个季节
    }
}
